@import "~@/assets/scss/function";

.form {
  font-size: 32px;
  margin-top: 30px;
  padding: 0 40px;
  position: relative;

  &:before {
    display: none;
    content: ' ';
    width: calc(100% + 20px);
    height: 12px;
    background: #144DC5;
    border-radius: 6px;

    position: absolute;
    top: -6px;
    left: -10px;
    z-index: -1;
  }

  .form-group {
    // display: flex;
    // align-items: center;
    // justify-content: space-between;
    margin-bottom: 30px;

    // margin-bottom: 32px;
    &:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    &.module {
      .val {
        margin-top: 0 !important;
      }
    }

    label {
      font-size: 32px;
      color: #111;
      line-height: 1;
      display: block;
      flex-shrink: 0;
    }

    .val {
      width: 100%;
      margin-top: 20px !important;
      height: 88px;
      line-height: 88px;
      background-color: #fff;
      font-weight: 500;
      color: #111;
      overflow: hidden;
      padding: 0 70px 0 20px;
      border: 0;
      border-radius: 20px;
    }

    .line {
      margin: 0 10px;
      width: 26px;
      height: 4px;
      background-color: #EC5958;
      color: transparent;
    }

    // input[type=text] {
    //   border: none;
    //   font-weight: 500;
    //   color: #222;
    //   font-size: 30px;
    //   border-radius: 20px;
    // }

    .input-select {
      padding-right: 70px;
      background: #fff url(~@/assets/imgs/icon/icon_right_7.png) no-repeat right center;
      background-size: 40px 40px;
      background-position: 620px 24px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }

    input[type=text].input-select:disabled {
      background: #FFFFFF !important;
    }

    input::-webkit-input-placeholder, .placeholder {
      color: #E0E0E0;
      font-size: 32px;
    }

    input:disabled,
    .inputboxDisabled {
      background: #FFFFFF !important;
    }
    .radio-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 20px;
      span {
        flex: 1;
        color: #222;
        font-size: 30px;
        height: 88px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        background-color: #fff;
        padding-left: 40px;
        border-radius: 20px;
        i {
          width: 40px;
          height: 40px;
          border-radius:50%;
          margin-right: 24px;
          border: 4px solid #555555;
        }
      }

      span:first-child {
        margin-right: 30px;

      }
      span.active {
        background-color: #FAD84E50;

        i {
          border: none;
          background: url('~@/assets/imgs/icon/icon_selected_2.png') no-repeat center;
          background-size: 100% 100%;
        }
      }
    }

    .val.separate-input {
      // padding-right: 40px;
      background-color: transparent;
      display: flex;
      align-items: center;
      width: 100%;
      padding: 0;
      input {
        margin-top: 0;
        text-align: left;
        flex: 1;
        padding: 0 20px;
        height: 100%;
        width: 0;
        border-radius: 20px;
        font-weight: 500;
        color: #222;
        border: 0;
      }

      .line {
        margin: 0 10px;
      }

      .unit {
        margin-right: 10px;
      }

      &.postalID {
        input:last-child {
          max-width: 190px;
        }
      }

      &.voterID {
        input[type='text']:not(:last-child) {
          max-width: 110px;
        }
      }
    }



    .contactbox {
      width: 100%;
      padding-right: 0;
      flex-shrink: 0;
      &.bg {
        background: #fff url(~@/assets/imgs/icon/icon_right_7.png) no-repeat right 0 center;
        background-size: 40px 40px;
      }

      .placeholder {
        pointer-events: none;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        content: '';
        padding-right: 80px;

      }

      .input-info {
        height: 100%;
        display: flex;
        align-items: center;
        // pointer-events: none;

        input {
          display: block;
          flex: 1;
          height: 100%;
          overflow: hidden;
          white-space: nowrap;
          padding-right: 20px;
          text-align: left;
          box-sizing: border-box;
          border: 0;
        }
      }

      .info {
        span {
          display: block;
          float: right;
          width: 50%;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          padding-right: 20px;
          pointer-events: none;
        }
      }
    }

    .contactboxDisabled {
      // background: #F8F8F8;
    }
  }

  .module {
    justify-content: flex-end;
  }

  .error-tips {
    display: none;
    color: #EC3B26;
    font-size: 24px;
    line-height: 28px;
  }

  .error-tips-new {
    display: none;
    color: #EC3B26;
    font-size: 24px;
    line-height: 28px;
    margin-top: 4px;
  }

}